import br.com.nooclix.salon.ui.screen.service.ServiceWindow;

// ActionScript file

public function creation():void{
	
	this.titleLabel.text = "Opções de Serviços";
	
	newService.imageIcon.source = "br/com/nooclix/salon/ui/icons/menubutton/scissors-add.png";
	newService.labelName.text = "Novo";
	newService.onClick(function ():void{
		
		var serviceWindow:ServiceWindow = new ServiceWindow();
		serviceWindow.openPanel();
		serviceWindow.currentState = "create";
		
	});
	
	findService.imageIcon.source = "br/com/nooclix/salon/ui/icons/menubutton/scissors-search.png";
	findService.labelName.text = "Buscar";
	findService.onClick(function ():void{
		
		var serviceWindow:ServiceWindow = new ServiceWindow();
		serviceWindow.openPanel();
		serviceWindow.currentState = "search";
	});
	
}